#ifndef _D3D_TYPES_H
#define _D3D_TYPES_H
#include "interface_types.h"
#include "..\common\types.h"
class tRenderTarget : public IResource
{
public:
	tRenderTarget(this) : m_pTargetSurface(NULL), m_pSurface(NULL), m_pTargetTexture(NULL),
		m_ClearColor(D3DCOLOR_COLORVALUE(0.0f,0.0f,0.0f,1.0f))
	{	}

	HRESULT Release()
	{
		if(m_pSurface)
	{
		m_pSurface->Release();
		m_pSurface = NULL;
	}

	if(m_pTargetSurface)
	{
		m_pTargetSurface->Release();
		m_pTargetSurface = NULL;
	}
	
	if(m_pTargetTexture)
	{
		m_pTargetTexture->Release();
		m_pTargetTexture = NULL;
	}
	return S_OK;
	}
	HRESULT Reload();

	D3DCOLOR				m_ClearColor;
	DWORD					m_ClearFlags;
	LPD3DXRENDERTOSURFACE	m_pTargetSurface;
	LPDIRECT3DSURFACE9		m_pSurface;
	LPDIRECT3DTEXTURE9		m_pTargetTexture;
};

HRESULT tRenderTarget::Reload()
{
return S_OK;
}

#endif